//
//  MyNavigationBar.m
//  06-UINavigationHomeWork
//
//  Created by 曹曹 on 16/7/21.
//  Copyright © 2016年 曹曹. All rights reserved.
//

#import "MyNavigationBar.h"

@implementation MyNavigationBar
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        for (UIView *view in self.subviews) {
            if ([view isKindOfClass:NSClassFromString(@"_UINavigationBarBackground")]) {
                [view removeFromSuperview];
            }
        }
    }
    return self;
}
@end
